<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="tubesrus.beans.Utilisateur,javax.ejb.EJB,javax.servlet.http.Cookie"%>

<div id="header">
<form method=post>
<table>
<tr>
<td>
	<a href="http://localhost:8080/Tubesrus"><img src="resources/images/banner.jpg"></a>
</td>

<td>
<table>
	<tr>
		<td>Identifiant <%if (("id").equals((String)session.getAttribute("error"))) {
			out.print("<div id=error>Inconnu</div>");
		}%>
		</td>
		<td><input type="text" name="id" required></td>
	</tr>
	<tr>

		<td>Mot de passe <%
		if ("pass".equals((String)session.getAttribute("error"))) {
			out.print("<div id=error>Echec</div>");
		}
		session.setAttribute("error",null);
	%>
		</td>
		<td><input type="password" name="password" required></td>
	</tr>
	
	<tr>
		<td></td>
		<td COLSPAN="2"><input type="submit" value="Se connecter">
		<input type="hidden" name="action" value="connectUser">
		</td>
	</tr>
	
	<tr><td></td><td><a href="inscription.jsp">Cr&eacute;er un compte</a></td></tr>
	
</table>
</td>

</tr>
</table>



</form>
</div>